package com.tarena.all;

import java.util.Random;
import java.util.Scanner;

public class MaxOfThree {
	public static void main(String[] args) {
//		Scanner sc = new Scanner(System.in);
//		int i = sc.nextInt();
//		int j = sc.nextInt();
//		int k = sc.nextInt();
//		System.out.println("i = " + i + "\tj = " + j + "\tk = " + k);
		
		
		Random ran = new Random();
		double d1 = ran.nextDouble();
		System.out.println("d1 = " + d1);//(0,1) 0 < d1 < 1
		int i1 = (int)(d1 * 10);
		System.out.println("i1 = " + i1);//[0,10)
		
		int i2 = ran.nextInt(10);
		System.out.println("i2 = " + i2);
		
//		int a = ran.nextInt(100);
//		int b = ran.nextInt(100);
//		int c = ran.nextInt(100);
//		System.out.println("a = " + a + "\tb = " + b + "\tc = " + c);
//		int temporary;
//		if(a > b){
//			temporary = a;
//			a = b;
//			b = temporary;
//		}
//		if(a > c){
//			temporary = a;
//			a = c;
//			c = temporary;
//		}
//		if(b > c){
//			temporary = b;
//			b = c;
//			c = temporary;
//		}
//		System.out.println("a = " + a + "\tb = " + b + "\tc = " + c);
	}
}
